namespace QMVnSoft.Lists
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.SystemForms;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormDmTkEditor : FormListEditor
    {
        private IContainer components;
        private LabelControl lblTen_Tk;
        private LabelControl lblTen_Tk_E;
        private LabelControl lblTk;
        private LabelControl lblTk_Bp;
        private LabelControl lblTk_Dt;
        private LabelControl lblTk_Gt;
        private LabelControl lblTk_Hd;
        private LabelControl lblTk_Km;
        private LabelControl lblTk_Kv;
        private LabelControl lblTk_Me;
        private LabelControl lblTk_Nt;
        private LabelControl lblTk_Nt0;
        private LabelControl lblTk_Sc;
        private LabelControl lblTk_VAT;
        private TextControl txtTen_Tk;
        private TextControl txtTen_Tk_E;
        private TextControl txtTen_Tk_Me;
        private TextControl txtTk;
        private TextOption txtTk_Bp;
        private TextOption txtTk_Dt;
        private TextOption txtTk_Gt;
        private TextOption txtTk_Hd;
        private TextOption txtTk_Km;
        private TextOption txtTk_Kv;
        private TextSearch txtTk_Me;
        private TextOption txtTk_Nt;
        private TextOption txtTk_Sc;
        private TextOption txtTk_VAT;

        public FormDmTkEditor()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormDmTkEditor));
            this.txtTk = new QMVnSoft.Controls.TextControl();
            this.lblTk = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Tk = new QMVnSoft.Controls.TextControl();
            this.lblTen_Tk = new QMVnSoft.Controls.LabelControl();
            this.txtTen_Tk_E = new QMVnSoft.Controls.TextControl();
            this.lblTen_Tk_E = new QMVnSoft.Controls.LabelControl();
            this.lblTk_Nt = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Nt = new QMVnSoft.Controls.TextOption();
            this.txtTk_Me = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Tk_Me = new QMVnSoft.Controls.TextControl();
            this.lblTk_Me = new QMVnSoft.Controls.LabelControl();
            this.lblTk_Nt0 = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Bp = new QMVnSoft.Controls.TextOption();
            this.lblTk_Bp = new QMVnSoft.Controls.LabelControl();
            this.lblTk_Hd = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Hd = new QMVnSoft.Controls.TextOption();
            this.lblTk_Dt = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Dt = new QMVnSoft.Controls.TextOption();
            this.lblTk_Kv = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Kv = new QMVnSoft.Controls.TextOption();
            this.lblTk_Gt = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Gt = new QMVnSoft.Controls.TextOption();
            this.lblTk_Sc = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Sc = new QMVnSoft.Controls.TextOption();
            this.lblTk_Km = new QMVnSoft.Controls.LabelControl();
            this.txtTk_Km = new QMVnSoft.Controls.TextOption();
            this.lblTk_VAT = new QMVnSoft.Controls.LabelControl();
            this.txtTk_VAT = new QMVnSoft.Controls.TextOption();
            this.SuspendLayout();
            // 
            // lblPhan_Loai
            // 
            this.lblPhan_Loai.Location = new System.Drawing.Point(12, 317);
            // 
            // txtMa_Loai1
            // 
            this.txtMa_Loai1.FirstFilter = "Type = \'TK1\'";
            this.txtMa_Loai1.Location = new System.Drawing.Point(123, 314);
            this.txtMa_Loai1.Size = new System.Drawing.Size(155, 20);
            this.txtMa_Loai1.TabIndex = 13;
            // 
            // txtMa_Loai2
            // 
            this.txtMa_Loai2.FirstFilter = "Type = \'TK2\'";
            this.txtMa_Loai2.Location = new System.Drawing.Point(280, 314);
            this.txtMa_Loai2.Size = new System.Drawing.Size(156, 20);
            this.txtMa_Loai2.TabIndex = 14;
            // 
            // txtMa_Loai3
            // 
            this.txtMa_Loai3.FirstFilter = "Type = \'TK3\'";
            this.txtMa_Loai3.Location = new System.Drawing.Point(438, 314);
            this.txtMa_Loai3.Size = new System.Drawing.Size(155, 20);
            this.txtMa_Loai3.TabIndex = 15;
            // 
            // txtTk
            // 
            this.txtTk.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk.CheckTextSearched = false;
            this.txtTk.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk.Location = new System.Drawing.Point(123, 28);
            this.txtTk.MaxLength = 32;
            this.txtTk.Name = "txtTk";
            this.txtTk.OldValue = null;
            this.txtTk.Size = new System.Drawing.Size(155, 20);
            this.txtTk.TabIndex = 0;
            this.txtTk.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk.Value = ((object)(resources.GetObject("txtTk.Value")));
            // 
            // lblTk
            // 
            this.lblTk.AutoSize = true;
            this.lblTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk.Location = new System.Drawing.Point(12, 31);
            this.lblTk.Name = "lblTk";
            this.lblTk.Size = new System.Drawing.Size(53, 14);
            this.lblTk.TabIndex = 4;
            this.lblTk.Text = "Tài khoản";
            // 
            // txtTen_Tk
            // 
            this.txtTen_Tk.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk.CheckTextSearched = false;
            this.txtTen_Tk.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk.Location = new System.Drawing.Point(123, 50);
            this.txtTen_Tk.MaxLength = 128;
            this.txtTen_Tk.Name = "txtTen_Tk";
            this.txtTen_Tk.OldValue = null;
            this.txtTen_Tk.Size = new System.Drawing.Size(470, 20);
            this.txtTen_Tk.TabIndex = 1;
            this.txtTen_Tk.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_Tk.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTen_Tk.Value = ((object)(resources.GetObject("txtTen_Tk.Value")));
            // 
            // lblTen_Tk
            // 
            this.lblTen_Tk.AutoSize = true;
            this.lblTen_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_Tk.Location = new System.Drawing.Point(12, 53);
            this.lblTen_Tk.Name = "lblTen_Tk";
            this.lblTen_Tk.Size = new System.Drawing.Size(71, 14);
            this.lblTen_Tk.TabIndex = 4;
            this.lblTen_Tk.Text = "Tên tài khoản";
            // 
            // txtTen_Tk_E
            // 
            this.txtTen_Tk_E.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Tk_E.CheckTextSearched = false;
            this.txtTen_Tk_E.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_Tk_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_E.Location = new System.Drawing.Point(123, 72);
            this.txtTen_Tk_E.MaxLength = 128;
            this.txtTen_Tk_E.Name = "txtTen_Tk_E";
            this.txtTen_Tk_E.OldValue = null;
            this.txtTen_Tk_E.Size = new System.Drawing.Size(470, 20);
            this.txtTen_Tk_E.TabIndex = 2;
            this.txtTen_Tk_E.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_Tk_E.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTen_Tk_E.Value = ((object)(resources.GetObject("txtTen_Tk_E.Value")));
            // 
            // lblTen_Tk_E
            // 
            this.lblTen_Tk_E.AutoSize = true;
            this.lblTen_Tk_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_Tk_E.Location = new System.Drawing.Point(12, 75);
            this.lblTen_Tk_E.Name = "lblTen_Tk_E";
            this.lblTen_Tk_E.Size = new System.Drawing.Size(73, 14);
            this.lblTen_Tk_E.TabIndex = 4;
            this.lblTen_Tk_E.Text = "Tên tiếng Anh";
            // 
            // lblTk_Nt
            // 
            this.lblTk_Nt.AutoSize = true;
            this.lblTk_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Nt.Location = new System.Drawing.Point(12, 97);
            this.lblTk_Nt.Name = "lblTk_Nt";
            this.lblTk_Nt.Size = new System.Drawing.Size(94, 14);
            this.lblTk_Nt.TabIndex = 4;
            this.lblTk_Nt.Text = "Tài khoản ngoại tệ";
            // 
            // txtTk_Nt
            // 
            this.txtTk_Nt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Nt.CheckTextSearched = false;
            this.txtTk_Nt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Nt.InputMask = "K,N,C,T";
            this.txtTk_Nt.Location = new System.Drawing.Point(123, 94);
            this.txtTk_Nt.Name = "txtTk_Nt";
            this.txtTk_Nt.OldValue = null;
            this.txtTk_Nt.Size = new System.Drawing.Size(23, 20);
            this.txtTk_Nt.TabIndex = 3;
            this.txtTk_Nt.Text = "K";
            this.txtTk_Nt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_Nt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_Nt.Value = "K";
            // 
            // txtTk_Me
            // 
            this.txtTk_Me.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Me.CheckTextSearched = false;
            this.txtTk_Me.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Me.EmptyIsValid = true;
            this.txtTk_Me.FieldDisplay = "Ten_Tk";
            this.txtTk_Me.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Me.FoundIsValid = true;
            this.txtTk_Me.Location = new System.Drawing.Point(123, 292);
            this.txtTk_Me.MaxLength = 32;
            this.txtTk_Me.Name = "txtTk_Me";
            this.txtTk_Me.OldValue = null;
            this.txtTk_Me.Size = new System.Drawing.Size(155, 20);
            this.txtTk_Me.TabIndex = 12;
            this.txtTk_Me.TableName = "DMTK";
            this.txtTk_Me.TextDisplay = this.txtTen_Tk_Me;
            this.txtTk_Me.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Me.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Me.Value = ((object)(resources.GetObject("txtTk_Me.Value")));
            // 
            // txtTen_Tk_Me
            // 
            this.txtTen_Tk_Me.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Tk_Me.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Me.CheckTextSearched = false;
            this.txtTen_Tk_Me.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Me.Enabled = false;
            this.txtTen_Tk_Me.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Me.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Me.Location = new System.Drawing.Point(284, 295);
            this.txtTen_Tk_Me.Name = "txtTen_Tk_Me";
            this.txtTen_Tk_Me.OldValue = null;
            this.txtTen_Tk_Me.Size = new System.Drawing.Size(309, 13);
            this.txtTen_Tk_Me.TabIndex = 13;
            this.txtTen_Tk_Me.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Me.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Tk_Me.Value = ((object)(resources.GetObject("txtTen_Tk_Me.Value")));
            // 
            // lblTk_Me
            // 
            this.lblTk_Me.AutoSize = true;
            this.lblTk_Me.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Me.Location = new System.Drawing.Point(12, 295);
            this.lblTk_Me.Name = "lblTk_Me";
            this.lblTk_Me.Size = new System.Drawing.Size(70, 14);
            this.lblTk_Me.TabIndex = 4;
            this.lblTk_Me.Text = "Tài khoản mẹ";
            // 
            // lblTk_Nt0
            // 
            this.lblTk_Nt0.AutoSize = true;
            this.lblTk_Nt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Nt0.ForeColor = System.Drawing.Color.Blue;
            this.lblTk_Nt0.Location = new System.Drawing.Point(152, 97);
            this.lblTk_Nt0.Name = "lblTk_Nt0";
            this.lblTk_Nt0.Size = new System.Drawing.Size(155, 14);
            this.lblTk_Nt0.TabIndex = 33;
            this.lblTk_Nt0.Text = "K-Không, N-Nợ, C-Có, T-Tất cả";
            // 
            // txtTk_Bp
            // 
            this.txtTk_Bp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Bp.CheckTextSearched = false;
            this.txtTk_Bp.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Bp.InputMask = "C,K";
            this.txtTk_Bp.Location = new System.Drawing.Point(123, 116);
            this.txtTk_Bp.Name = "txtTk_Bp";
            this.txtTk_Bp.OldValue = null;
            this.txtTk_Bp.Size = new System.Drawing.Size(23, 20);
            this.txtTk_Bp.TabIndex = 4;
            this.txtTk_Bp.Text = "C";
            this.txtTk_Bp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_Bp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_Bp.Value = "C";
            // 
            // lblTk_Bp
            // 
            this.lblTk_Bp.AutoSize = true;
            this.lblTk_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Bp.Location = new System.Drawing.Point(12, 119);
            this.lblTk_Bp.Name = "lblTk_Bp";
            this.lblTk_Bp.Size = new System.Drawing.Size(95, 14);
            this.lblTk_Bp.TabIndex = 36;
            this.lblTk_Bp.Text = "Tài khoản bộ phận";
            // 
            // lblTk_Hd
            // 
            this.lblTk_Hd.AutoSize = true;
            this.lblTk_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Hd.Location = new System.Drawing.Point(12, 141);
            this.lblTk_Hd.Name = "lblTk_Hd";
            this.lblTk_Hd.Size = new System.Drawing.Size(102, 14);
            this.lblTk_Hd.TabIndex = 36;
            this.lblTk_Hd.Text = "Tài khoản hợp đồng";
            // 
            // txtTk_Hd
            // 
            this.txtTk_Hd.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Hd.CheckTextSearched = false;
            this.txtTk_Hd.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Hd.InputMask = "C,K";
            this.txtTk_Hd.Location = new System.Drawing.Point(123, 138);
            this.txtTk_Hd.Name = "txtTk_Hd";
            this.txtTk_Hd.OldValue = null;
            this.txtTk_Hd.Size = new System.Drawing.Size(23, 20);
            this.txtTk_Hd.TabIndex = 5;
            this.txtTk_Hd.Text = "C";
            this.txtTk_Hd.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_Hd.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_Hd.Value = "C";
            // 
            // lblTk_Dt
            // 
            this.lblTk_Dt.AutoSize = true;
            this.lblTk_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Dt.Location = new System.Drawing.Point(12, 163);
            this.lblTk_Dt.Name = "lblTk_Dt";
            this.lblTk_Dt.Size = new System.Drawing.Size(96, 14);
            this.lblTk_Dt.TabIndex = 36;
            this.lblTk_Dt.Text = "Tài khoản công nợ";
            // 
            // txtTk_Dt
            // 
            this.txtTk_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Dt.CheckTextSearched = false;
            this.txtTk_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Dt.InputMask = "C,K";
            this.txtTk_Dt.Location = new System.Drawing.Point(123, 160);
            this.txtTk_Dt.Name = "txtTk_Dt";
            this.txtTk_Dt.OldValue = null;
            this.txtTk_Dt.Size = new System.Drawing.Size(23, 20);
            this.txtTk_Dt.TabIndex = 6;
            this.txtTk_Dt.Text = "C";
            this.txtTk_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_Dt.Value = "C";
            // 
            // lblTk_Kv
            // 
            this.lblTk_Kv.AutoSize = true;
            this.lblTk_Kv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Kv.Location = new System.Drawing.Point(12, 185);
            this.lblTk_Kv.Name = "lblTk_Kv";
            this.lblTk_Kv.Size = new System.Drawing.Size(74, 14);
            this.lblTk_Kv.TabIndex = 36;
            this.lblTk_Kv.Text = "Tài khoản vay";
            // 
            // txtTk_Kv
            // 
            this.txtTk_Kv.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Kv.CheckTextSearched = false;
            this.txtTk_Kv.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Kv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Kv.InputMask = "C,K";
            this.txtTk_Kv.Location = new System.Drawing.Point(123, 182);
            this.txtTk_Kv.Name = "txtTk_Kv";
            this.txtTk_Kv.OldValue = null;
            this.txtTk_Kv.Size = new System.Drawing.Size(23, 20);
            this.txtTk_Kv.TabIndex = 7;
            this.txtTk_Kv.Text = "C";
            this.txtTk_Kv.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_Kv.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_Kv.Value = "C";
            // 
            // lblTk_Gt
            // 
            this.lblTk_Gt.AutoSize = true;
            this.lblTk_Gt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Gt.Location = new System.Drawing.Point(12, 207);
            this.lblTk_Gt.Name = "lblTk_Gt";
            this.lblTk_Gt.Size = new System.Drawing.Size(100, 14);
            this.lblTk_Gt.TabIndex = 36;
            this.lblTk_Gt.Text = "Tài khoản giá thành";
            // 
            // txtTk_Gt
            // 
            this.txtTk_Gt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Gt.CheckTextSearched = false;
            this.txtTk_Gt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Gt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Gt.InputMask = "C,K";
            this.txtTk_Gt.Location = new System.Drawing.Point(123, 204);
            this.txtTk_Gt.Name = "txtTk_Gt";
            this.txtTk_Gt.OldValue = null;
            this.txtTk_Gt.Size = new System.Drawing.Size(23, 20);
            this.txtTk_Gt.TabIndex = 8;
            this.txtTk_Gt.Text = "C";
            this.txtTk_Gt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_Gt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_Gt.Value = "C";
            // 
            // lblTk_Sc
            // 
            this.lblTk_Sc.AutoSize = true;
            this.lblTk_Sc.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Sc.Location = new System.Drawing.Point(12, 229);
            this.lblTk_Sc.Name = "lblTk_Sc";
            this.lblTk_Sc.Size = new System.Drawing.Size(85, 14);
            this.lblTk_Sc.TabIndex = 36;
            this.lblTk_Sc.Text = "Tài khoản sổ cái";
            // 
            // txtTk_Sc
            // 
            this.txtTk_Sc.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Sc.CheckTextSearched = false;
            this.txtTk_Sc.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Sc.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Sc.InputMask = "C,K";
            this.txtTk_Sc.Location = new System.Drawing.Point(123, 226);
            this.txtTk_Sc.Name = "txtTk_Sc";
            this.txtTk_Sc.OldValue = null;
            this.txtTk_Sc.Size = new System.Drawing.Size(23, 20);
            this.txtTk_Sc.TabIndex = 9;
            this.txtTk_Sc.Text = "C";
            this.txtTk_Sc.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_Sc.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_Sc.Value = "C";
            // 
            // lblTk_Km
            // 
            this.lblTk_Km.AutoSize = true;
            this.lblTk_Km.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Km.Location = new System.Drawing.Point(12, 251);
            this.lblTk_Km.Name = "lblTk_Km";
            this.lblTk_Km.Size = new System.Drawing.Size(108, 14);
            this.lblTk_Km.TabIndex = 36;
            this.lblTk_Km.Text = "Tài khoản khoản mục";
            // 
            // txtTk_Km
            // 
            this.txtTk_Km.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Km.CheckTextSearched = false;
            this.txtTk_Km.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Km.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Km.InputMask = "C,K";
            this.txtTk_Km.Location = new System.Drawing.Point(123, 248);
            this.txtTk_Km.Name = "txtTk_Km";
            this.txtTk_Km.OldValue = null;
            this.txtTk_Km.Size = new System.Drawing.Size(23, 20);
            this.txtTk_Km.TabIndex = 10;
            this.txtTk_Km.Text = "C";
            this.txtTk_Km.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_Km.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_Km.Value = "C";
            // 
            // lblTk_VAT
            // 
            this.lblTk_VAT.AutoSize = true;
            this.lblTk_VAT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_VAT.Location = new System.Drawing.Point(12, 273);
            this.lblTk_VAT.Name = "lblTk_VAT";
            this.lblTk_VAT.Size = new System.Drawing.Size(76, 14);
            this.lblTk_VAT.TabIndex = 36;
            this.lblTk_VAT.Text = "Tài khoản VAT";
            // 
            // txtTk_VAT
            // 
            this.txtTk_VAT.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_VAT.CheckTextSearched = false;
            this.txtTk_VAT.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_VAT.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_VAT.InputMask = "C,K";
            this.txtTk_VAT.Location = new System.Drawing.Point(123, 270);
            this.txtTk_VAT.Name = "txtTk_VAT";
            this.txtTk_VAT.OldValue = null;
            this.txtTk_VAT.Size = new System.Drawing.Size(23, 20);
            this.txtTk_VAT.TabIndex = 11;
            this.txtTk_VAT.Text = "C";
            this.txtTk_VAT.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTk_VAT.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTk_VAT.Value = "C";
            // 
            // FormDmTkEditor
            // 
            this.AddTitleText = "Thêm mới tài khoản";
            this.ClientSize = new System.Drawing.Size(610, 348);
            this.Controls.Add(this.txtTk_VAT);
            this.Controls.Add(this.txtTk_Km);
            this.Controls.Add(this.txtTk_Sc);
            this.Controls.Add(this.txtTk_Gt);
            this.Controls.Add(this.txtTk_Kv);
            this.Controls.Add(this.txtTk_Dt);
            this.Controls.Add(this.txtTk_Hd);
            this.Controls.Add(this.txtTk_Bp);
            this.Controls.Add(this.lblTk_VAT);
            this.Controls.Add(this.lblTk_Km);
            this.Controls.Add(this.lblTk_Sc);
            this.Controls.Add(this.lblTk_Gt);
            this.Controls.Add(this.lblTk_Kv);
            this.Controls.Add(this.lblTk_Dt);
            this.Controls.Add(this.lblTk_Hd);
            this.Controls.Add(this.lblTk_Bp);
            this.Controls.Add(this.lblTk_Nt0);
            this.Controls.Add(this.txtTen_Tk_Me);
            this.Controls.Add(this.txtTk_Me);
            this.Controls.Add(this.txtTk_Nt);
            this.Controls.Add(this.lblTen_Tk_E);
            this.Controls.Add(this.lblTk_Nt);
            this.Controls.Add(this.lblTen_Tk);
            this.Controls.Add(this.lblTk_Me);
            this.Controls.Add(this.lblTk);
            this.Controls.Add(this.txtTen_Tk_E);
            this.Controls.Add(this.txtTen_Tk);
            this.Controls.Add(this.txtTk);
            this.EditTitleText = "Sửa tài khoản";
            this.FirstFreeCode = "TK1";
            this.Name = "FormDmTkEditor";
            this.SecondFreeCode = "TK2";
            this.Text = "Them moi nhom vat tu, hang hoa";
            this.ThirdFreeCode = "TK3";
            this.Controls.SetChildIndex(this.lblPhan_Loai, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai1, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai2, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai3, 0);
            this.Controls.SetChildIndex(this.txtTk, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_E, 0);
            this.Controls.SetChildIndex(this.lblTk, 0);
            this.Controls.SetChildIndex(this.lblTk_Me, 0);
            this.Controls.SetChildIndex(this.lblTen_Tk, 0);
            this.Controls.SetChildIndex(this.lblTk_Nt, 0);
            this.Controls.SetChildIndex(this.lblTen_Tk_E, 0);
            this.Controls.SetChildIndex(this.txtTk_Nt, 0);
            this.Controls.SetChildIndex(this.txtTk_Me, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_Me, 0);
            this.Controls.SetChildIndex(this.lblTk_Nt0, 0);
            this.Controls.SetChildIndex(this.lblTk_Bp, 0);
            this.Controls.SetChildIndex(this.lblTk_Hd, 0);
            this.Controls.SetChildIndex(this.lblTk_Dt, 0);
            this.Controls.SetChildIndex(this.lblTk_Kv, 0);
            this.Controls.SetChildIndex(this.lblTk_Gt, 0);
            this.Controls.SetChildIndex(this.lblTk_Sc, 0);
            this.Controls.SetChildIndex(this.lblTk_Km, 0);
            this.Controls.SetChildIndex(this.lblTk_VAT, 0);
            this.Controls.SetChildIndex(this.txtTk_Bp, 0);
            this.Controls.SetChildIndex(this.txtTk_Hd, 0);
            this.Controls.SetChildIndex(this.txtTk_Dt, 0);
            this.Controls.SetChildIndex(this.txtTk_Kv, 0);
            this.Controls.SetChildIndex(this.txtTk_Gt, 0);
            this.Controls.SetChildIndex(this.txtTk_Sc, 0);
            this.Controls.SetChildIndex(this.txtTk_Km, 0);
            this.Controls.SetChildIndex(this.txtTk_VAT, 0);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        public override bool OnSave()
        {
            DataRow localCurrentRow;
            if (string.IsNullOrEmpty(this.txtTk.Text))
            {
                MessageBox.Show("Chưa nhập số hiệu tài khoản!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtTen_Tk.Text))
            {
                MessageBox.Show("Chưa nhập tên tài khoản!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtTen_Tk_E.Text))
            {
                MessageBox.Show("Chưa nhập tên tài khoản tiếng Anh!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (!string.IsNullOrEmpty(this.txtTk_Me.Text))
            {
                DataTable table = AppDataAccess.CheckInUsed(base.LocalFieldName, this.txtTk_Me.Text);
                DataRow row = table.Rows.Find("DMTK");
                if (row != null)
                {
                    table.Rows.Remove(row);
                }
                if (table.Rows.Count != 0)
                {
                    FormCheckDeleted deleted = new FormCheckDeleted();
                    deleted.LocalTable = table;
                    deleted.ShowDialog();
                    return false;
                }
            }
            if (base.NewChecked)
            {
                localCurrentRow = base.LocalTable.NewRow();
            }
            else
            {
                localCurrentRow = base.LocalCurrentRow;
            }
            localCurrentRow["Tk"] = this.txtTk.Value;
            localCurrentRow["Ten_Tk"] = this.txtTen_Tk.Value;
            localCurrentRow["Ten_Tk_E"] = this.txtTen_Tk_E.Value;
            localCurrentRow["Tk_Nt"] = this.txtTk_Nt.Value;
            localCurrentRow["Tk_Bp"] = this.txtTk_Bp.Value;
            localCurrentRow["Tk_Hd"] = this.txtTk_Hd.Value;
            localCurrentRow["Tk_Dt"] = this.txtTk_Dt.Value;
            localCurrentRow["Tk_Kv"] = this.txtTk_Kv.Value;
            localCurrentRow["Tk_Gt"] = this.txtTk_Gt.Value;
            localCurrentRow["Tk_Sc"] = this.txtTk_Sc.Value;
            localCurrentRow["Tk_Km"] = this.txtTk_Km.Value;
            localCurrentRow["Tk_VAT"] = this.txtTk_VAT.Value;
            localCurrentRow["Tk_Me"] = this.txtTk_Me.Value;
            localCurrentRow["Ten_Tk_Me"] = this.txtTen_Tk_Me.Value;
            localCurrentRow["Ma_Loai1"] = base.txtMa_Loai1.Value;
            localCurrentRow["Ma_Loai2"] = base.txtMa_Loai2.Value;
            localCurrentRow["Ma_Loai3"] = base.txtMa_Loai3.Value;
            DmTkDataAccess access = new DmTkDataAccess();
            if (base.ShowMessage(localCurrentRow, access.SaveRow(base.NewChecked, localCurrentRow)))
            {
                return false;
            }
            if (base.NewChecked)
            {
                base.LocalTable.Rows.Add(localCurrentRow);
            }
            base.LocalCurrentRow = localCurrentRow;
            base.LocalTable.AcceptChanges();
            this.txtTk.Focus();
            return base.OnSave();
        }

        public override void OnShow()
        {
            this.txtTk.Value = base.LocalCurrentRow["Tk"];
            this.txtTen_Tk.Value = base.LocalCurrentRow["Ten_Tk"];
            this.txtTen_Tk_E.Value = base.LocalCurrentRow["Ten_Tk_E"];
            this.txtTk_Nt.Value = base.LocalCurrentRow["Tk_Nt"];
            this.txtTk_Bp.Value = base.LocalCurrentRow["Tk_Bp"];
            this.txtTk_Hd.Value = base.LocalCurrentRow["Tk_Hd"];
            this.txtTk_Dt.Value = base.LocalCurrentRow["Tk_Dt"];
            this.txtTk_Kv.Value = base.LocalCurrentRow["Tk_Kv"];
            this.txtTk_Gt.Value = base.LocalCurrentRow["Tk_Gt"];
            this.txtTk_Sc.Value = base.LocalCurrentRow["Tk_Sc"];
            this.txtTk_Km.Value = base.LocalCurrentRow["Tk_Km"];
            this.txtTk_VAT.Value = base.LocalCurrentRow["Tk_VAT"];
            this.txtTk_Me.Value = base.LocalCurrentRow["Tk_Me"];
            this.txtTen_Tk_Me.Value = base.LocalCurrentRow["Ten_Tk_Me"];
            base.txtMa_Loai1.Value = base.LocalCurrentRow["Ma_Loai1"];
            base.txtMa_Loai2.Value = base.LocalCurrentRow["Ma_Loai2"];
            base.txtMa_Loai3.Value = base.LocalCurrentRow["Ma_Loai3"];
            base.OnShow();
        }
    }
}

